import {HIDDEN_PAGE_COMMENTS_ELEM_ID} from "~utils/constants";

const initializeHighlightPage = () => {
  let hiddenSpanElem = document.getElementById(HIDDEN_PAGE_COMMENTS_ELEM_ID);
  if (!hiddenSpanElem) {
    hiddenSpanElem = document.createElement("span");
    hiddenSpanElem.id = HIDDEN_PAGE_COMMENTS_ELEM_ID;
    hiddenSpanElem.hidden = true;
    document.body.appendChild(hiddenSpanElem);
  }
  hiddenSpanElem.innerText = "";
}

export default initializeHighlightPage;
